package com.wing.common.service;

import com.wing.common.dao.CommonDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class CommonServiceImpl implements CommonService {

    @Autowired
    private   CommonDao commonDao;

    @Override
    public boolean insertPro(Map<String, Object> map) {
        return commonDao.insertPro(map);
    }

    @Override
    public boolean insertProDetail(Map<String, Object> map) {
        return  commonDao.insertProDetail(map);
    }

    @Override
    public  String existById(Long productId) {
        return commonDao.existById(productId);
    }

    @Override
    public List<String> findAllDetailId() {
        return commonDao.findAllDetailId();
    }

}
